package file;

import java.io.*;

public class BufferedDemo {
    public static void main(String[] args) {
        FileInputStream fis=null;
        BufferedInputStream bis=null;
        try {
            fis=new FileInputStream("thread\\fileOutput.txt");
            bis=new BufferedInputStream(fis);
            int n=0;
            while ((n=bis.read())!=-1){
                System.out.println((char)n);
            }
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
